package top.superflow.core.metadata

import top.superflow.core.semantic.{SemanticData, SemanticUtils}

import scala.beans.BeanProperty

final class MetadataElement {
  @BeanProperty
  var name : String = _
  
  @BeanProperty
  var value : String = _
  
  @BeanProperty
  var description : String = _
  
  def isSemanticEqual (semantic : SemanticData): Boolean = {
    if(semantic == null){
      return false
    }
    
    SemanticUtils.isSemanticEqual(this.name, semantic)
  }
  
  
}

object MetadataElement {
  def main(args: Array[String]): Unit = {
//    val element = new DefaultResourcePoolConfig
    
//    print(element.getIdleTimeout())
    
  }
}